package com.niguang.work.show.yxyfFace.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.niguang.work.show.common.util.AES128Util;
import lombok.Data;


/**
 * 同步会员请求vo xml
 */
@Data
@JacksonXmlRootElement(localName = "yxyf_request")
public class SynchroMembersVo {

    private String command_id = "yxyf_user_sync_user_info";

    private String org_code;

    private String user_id;

    private String face_photo_url;

    private String user_name;

    private String user_birthday;

    private String user_sex;

    private String user_card_id;

    public SynchroMembersVo(String org_code, String user_id, String face_photo_url,
                            String user_name, String user_birthday, String user_sex, String user_card_id) {
        this.org_code = org_code;
        this.user_id = user_id;
        this.face_photo_url = face_photo_url;
        this.user_name = user_name;
        this.user_birthday = user_birthday;
        this.user_sex = user_sex;
        this.user_card_id = user_card_id;
    }

    public String getUser_id() {
        try {
            return AES128Util.encryptAES(user_id);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "";
    }

    public SynchroMembersVo() {
    }

}
